/**
 * <copyright>
 * </copyright>
 *
 * $Id$
 */
package org.hl7.v3;

import java.util.Arrays;
import java.util.Collections;
import java.util.List;

import org.eclipse.emf.common.util.Enumerator;

/**
 * <!-- begin-user-doc -->
 * A representation of the literals of the enumeration '<em><b>Act Medical Service Code</b></em>',
 * and utility methods for working with them.
 * <!-- end-user-doc -->
 * <!-- begin-model-doc -->
 * abstDomain: A17449 (C-0-T13953-A13954-A13955-A17449-cpt)
 * <!-- end-model-doc -->
 * @see org.hl7.v3.V3Package#getActMedicalServiceCode()
 * @model extendedMetaData="name='ActMedicalServiceCode'"
 * @generated
 */
public enum ActMedicalServiceCode implements Enumerator {
	/**
	 * The '<em><b>ALC</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #ALC_VALUE
	 * @generated
	 * @ordered
	 */
	ALC(0, "ALC", "ALC"),

	/**
	 * The '<em><b>CARD</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #CARD_VALUE
	 * @generated
	 * @ordered
	 */
	CARD(1, "CARD", "CARD"),

	/**
	 * The '<em><b>CHR</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #CHR_VALUE
	 * @generated
	 * @ordered
	 */
	CHR(2, "CHR", "CHR"),

	/**
	 * The '<em><b>DNTL</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #DNTL_VALUE
	 * @generated
	 * @ordered
	 */
	DNTL(3, "DNTL", "DNTL"),

	/**
	 * The '<em><b>DRGRHB</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #DRGRHB_VALUE
	 * @generated
	 * @ordered
	 */
	DRGRHB(4, "DRGRHB", "DRGRHB"),

	/**
	 * The '<em><b>GENRL</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #GENRL_VALUE
	 * @generated
	 * @ordered
	 */
	GENRL(5, "GENRL", "GENRL"),

	/**
	 * The '<em><b>MED</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #MED_VALUE
	 * @generated
	 * @ordered
	 */
	MED(6, "MED", "MED"),

	/**
	 * The '<em><b>OBS</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #OBS_VALUE
	 * @generated
	 * @ordered
	 */
	OBS(7, "OBS", "OBS"),

	/**
	 * The '<em><b>ONC</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #ONC_VALUE
	 * @generated
	 * @ordered
	 */
	ONC(8, "ONC", "ONC"),

	/**
	 * The '<em><b>PALL</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #PALL_VALUE
	 * @generated
	 * @ordered
	 */
	PALL(9, "PALL", "PALL"),

	/**
	 * The '<em><b>PED</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #PED_VALUE
	 * @generated
	 * @ordered
	 */
	PED(10, "PED", "PED"),

	/**
	 * The '<em><b>PHAR</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #PHAR_VALUE
	 * @generated
	 * @ordered
	 */
	PHAR(11, "PHAR", "PHAR"),

	/**
	 * The '<em><b>PHYRHB</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #PHYRHB_VALUE
	 * @generated
	 * @ordered
	 */
	PHYRHB(12, "PHYRHB", "PHYRHB"),

	/**
	 * The '<em><b>PSYCH</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #PSYCH_VALUE
	 * @generated
	 * @ordered
	 */
	PSYCH(13, "PSYCH", "PSYCH"),

	/**
	 * The '<em><b>SURG</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #SURG_VALUE
	 * @generated
	 * @ordered
	 */
	SURG(14, "SURG", "SURG");

	/**
	 * The '<em><b>ALC</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>ALC</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #ALC
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int ALC_VALUE = 0;

	/**
	 * The '<em><b>CARD</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>CARD</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #CARD
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int CARD_VALUE = 1;

	/**
	 * The '<em><b>CHR</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>CHR</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #CHR
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int CHR_VALUE = 2;

	/**
	 * The '<em><b>DNTL</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>DNTL</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #DNTL
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int DNTL_VALUE = 3;

	/**
	 * The '<em><b>DRGRHB</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>DRGRHB</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #DRGRHB
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int DRGRHB_VALUE = 4;

	/**
	 * The '<em><b>GENRL</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>GENRL</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #GENRL
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int GENRL_VALUE = 5;

	/**
	 * The '<em><b>MED</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>MED</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #MED
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int MED_VALUE = 6;

	/**
	 * The '<em><b>OBS</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>OBS</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #OBS
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int OBS_VALUE = 7;

	/**
	 * The '<em><b>ONC</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>ONC</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #ONC
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int ONC_VALUE = 8;

	/**
	 * The '<em><b>PALL</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>PALL</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #PALL
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int PALL_VALUE = 9;

	/**
	 * The '<em><b>PED</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>PED</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #PED
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int PED_VALUE = 10;

	/**
	 * The '<em><b>PHAR</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>PHAR</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #PHAR
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int PHAR_VALUE = 11;

	/**
	 * The '<em><b>PHYRHB</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>PHYRHB</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #PHYRHB
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int PHYRHB_VALUE = 12;

	/**
	 * The '<em><b>PSYCH</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>PSYCH</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #PSYCH
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int PSYCH_VALUE = 13;

	/**
	 * The '<em><b>SURG</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>SURG</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #SURG
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int SURG_VALUE = 14;

	/**
	 * An array of all the '<em><b>Act Medical Service Code</b></em>' enumerators.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private static final ActMedicalServiceCode[] VALUES_ARRAY =
		new ActMedicalServiceCode[] {
			ALC,
			CARD,
			CHR,
			DNTL,
			DRGRHB,
			GENRL,
			MED,
			OBS,
			ONC,
			PALL,
			PED,
			PHAR,
			PHYRHB,
			PSYCH,
			SURG,
		};

	/**
	 * A public read-only list of all the '<em><b>Act Medical Service Code</b></em>' enumerators.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static final List<ActMedicalServiceCode> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));

	/**
	 * Returns the '<em><b>Act Medical Service Code</b></em>' literal with the specified literal value.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static ActMedicalServiceCode get(String literal) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			ActMedicalServiceCode result = VALUES_ARRAY[i];
			if (result.toString().equals(literal)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the '<em><b>Act Medical Service Code</b></em>' literal with the specified name.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static ActMedicalServiceCode getByName(String name) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			ActMedicalServiceCode result = VALUES_ARRAY[i];
			if (result.getName().equals(name)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the '<em><b>Act Medical Service Code</b></em>' literal with the specified integer value.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static ActMedicalServiceCode get(int value) {
		switch (value) {
			case ALC_VALUE: return ALC;
			case CARD_VALUE: return CARD;
			case CHR_VALUE: return CHR;
			case DNTL_VALUE: return DNTL;
			case DRGRHB_VALUE: return DRGRHB;
			case GENRL_VALUE: return GENRL;
			case MED_VALUE: return MED;
			case OBS_VALUE: return OBS;
			case ONC_VALUE: return ONC;
			case PALL_VALUE: return PALL;
			case PED_VALUE: return PED;
			case PHAR_VALUE: return PHAR;
			case PHYRHB_VALUE: return PHYRHB;
			case PSYCH_VALUE: return PSYCH;
			case SURG_VALUE: return SURG;
		}
		return null;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final int value;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final String name;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final String literal;

	/**
	 * Only this class can construct instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private ActMedicalServiceCode(int value, String name, String literal) {
		this.value = value;
		this.name = name;
		this.literal = literal;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public int getValue() {
	  return value;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getName() {
	  return name;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getLiteral() {
	  return literal;
	}

	/**
	 * Returns the literal value of the enumerator, which is its string representation.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public String toString() {
		return literal;
	}
	
} //ActMedicalServiceCode
